using System;
using System.Collections.Generic;
using System.Text;

namespace DDW
{
	public class RefNode : ExpressionNode
	{
		public RefNode()
		{
		}
		public RefNode(ExpressionNode variableReference)
		{
			this.variableReference = variableReference;
		}

		private ExpressionNode variableReference;
		public ExpressionNode VariableReference
		{
			get { return variableReference; }
			set { variableReference = value; }
		}

		public override void ToSource(StringBuilder sb)
		{
			sb.Append("ref ");
			variableReference.ToSource(sb);
		}
	}
}
